package com.atguigu.yygh.user.client;

import com.atguigu.yygh.common.result.Result;
import com.atguigu.yygh.model.user.Patient;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "service-user")
@Component
public interface PatientFeignClient {

    @ApiOperation(value = "根据id获取就诊人信息")
    @GetMapping("/api/user/patient/auth/get/{id}")
    public Result getPatient(@PathVariable("id") Long id);
}
